﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CheckOutSupply.aspx.cs" Inherits="Supermarket.Web.CashierPages.CheckOutSupply" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridViewCheckedProducts" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="#DEBA84" BorderColor="#DEBA84" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        DataSourceID="odsCheckedProducts" EnableViewState="False" 
        onrowdatabound="GridViewCheckedProducts_RowDataBound" PageSize="15" 
        ShowFooter="True">
        <Columns>
            <asp:BoundField DataField="ProductName" HeaderText="Продукт" 
                SortExpression="ProductName" />
            <asp:BoundField DataField="ProductSupplyPrice" HeaderText="Ед. цена" 
                SortExpression="ProductSupplyPrice" DataFormatString="{0:0.00}" />
            <asp:BoundField DataField="Quantity" HeaderText="Количество" 
                SortExpression="Quantity" />
            <asp:BoundField DataField="ItemTotal" HeaderText="Цена" 
                SortExpression="ItemTotal" DataFormatString="{0:0.00}" />
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    <asp:Button ID="ButtonCheckOut" Text="Плати" runat="server" 
        onclick="ButtonCheckOut_Click" />
    <br /><br />
    <asp:Label ID="LabelResult" Text="" runat="server" />
    <asp:ObjectDataSource ID="odsCheckedProducts" runat="server" 
        SelectMethod="GetCheckedProductForSupply" 
        TypeName="Supermarket.Bll.ShoppingCartManager"></asp:ObjectDataSource>

</asp:Content>
